<template>
  <div>
    <div class="main">
      <h1>登录注册表单切换</h1>
      <div class="w3_login">
        <div class="w3_login_module">
          <div class="module form-module">
            <div class="toggle">
              <i class="fa fa-times fa-pencil" @click="funcson"></i>
              <div class="tooltip" tag="span">点击切换</div>
            </div>
            <div class="form">
              <h2>创建一个账号</h2>
              <form action="#" method="post">
                <input type="text" name="Username" placeholder="用户名" required=" "/>
                <input type="password" name="Password" placeholder="密码" required=" "/>
                <input type="email" name="Email" placeholder="Email" required=" "/>
                <input type="text" name="Phone" placeholder="电话" required=" "/>
                <input type="submit" value="注册"/>
              </form>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: 'register',
  data () {
    return {
      login_visible: true
    }
  },
  methods: {
    funcson (v) {
      this.$emit('func', this.login_visible)
    }
  }
}
</script>

<style scoped>
  .login {
    background: url(../images/banner.jpg) no-repeat 0px 0px;
    background-size: cover;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    -ms-background-size: cover;
    background-attachment: fixed;
  }
</style>
